/*
 * Copyright 2011-2020 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0.
 * See `LICENSE` in the project root for license information.
 */

package me.ijleex.mgmt.system.auth.service;

import me.ijleex.mgmt.framework.entity.Result;

/**
 * IAuthService.
 *
 * @author liym
 * @since 2020-08-09 14:03 新建
 */
public interface IAuthService {

    /**
     * 登录
     *
     * @param login 登录名
     * @param password 密码
     * @return 登录结果
     */
    Result login(String login, String password);

    /**
     * 注册
     *
     * @param login 登录名
     * @param password 密码
     * @param captchaCode 验证码
     * @return 注册结果
     * @since 2020-08-09 14:33
     */
    Result register(String login, String password, String captchaCode);

}
